//
//  Utility.h
//  DrawCircle
//
//  Created by Nguyen Tan Loc on 5/14/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "GDataXMLNode.h"

@interface Utility : NSObject
{
    NSMutableDictionary *mAnimationDictionary;
    GDataXMLDocument *mAnimationData;
}

+(Utility *) getInstance;

-(float) vectorToAngle:(CGPoint)vector;
-(float) vectorToRadian:(CGPoint)vector;

-(CCAction *) getAnimWithKey:(NSString *)key delay:(float)delay loop:(int)loop;

-(void) saveObject:(id)object forKey:(NSString *)key;
-(id) loadObjectForKey:(NSString *)key;
-(void) playEffect:(NSString *)str;


@end
